package com.xing.serviceedu.client.impl;

import com.xing.commonutils.R;
import com.xing.serviceedu.client.OssClient;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

/**
 * 出错后回滚到这个方法
 *
 * @author: xingfuhao
 * @create: 2022-03-18 21:27
 */
@Component
public class OssClientFeignClient implements OssClient {

    //出错之后会执行
    @Override
    public R uploadOssFile(MultipartFile file) {
        return R.error().message("上传视频出错误了");
    }

    @Override
    public R a() {
        return R.error().message("删除多个视频出错了");
    }
}
